package Interface;

import Book.BookList;

/**
 * @Author YuanYuan
 * @Date 2022/5/18
 * @Time 10:41
 */
public class SeeBook implements INterface{
    @Override
    public void work(BookList bookList) {

        System.out.println("显示图书");

        for (int i = 0; i < bookList.getNumber(); i++) {
            System.out.println(bookList.getBooks(i).toString());
        }

//        System.out.println(bookList.toString());
    }
}
